import 'package:flutter/material.dart';

class TextIconNav extends StatelessWidget {
  final IconData icon;
  final String text;
  const TextIconNav({super.key, required this.icon, required this.text});

  @override
  Widget build(BuildContext context) {
    final txtStyle = TextStyle(fontSize: 12, color: Colors.grey[800]);
    return Container(
      padding: EdgeInsets.all(4),
      child: Column(
        children: [
          Icon(
            icon,
            size: 36,
          ),
          Text(
            '${text}',
            style: txtStyle,
          ),
        ],
      ),
    );
  }
}
